]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Remove action mode limitation for swipe tracker
authorJonas Dreßler <verdre@v0yd.nl>
Tue, 30 Apr 2024 15:50:20 +0000 (17:50 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 28 Aug 2025 17:14:06 +0000 (19:14 +0200)
Now that we no longer have the swipe tracker on the stage, but rather on
the actual actor that the gesture is happening on, we don't have to limit it
to specific ActionModes anymore, so remove that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2853>

js/ui/appDisplay.js

index b6479ae17ada848cd7701df1c49825798c01e769..e09c97d6f5e521358f9ef6d4cc1d2be3e8f65dc7 100644 (file)
@@ -469,12 +469,6 @@ class BaseAppViewGridLayout extends Clutter.BinLayout {
 
 var BaseAppView = GObject.registerClass({
     GTypeFlags: GObject.TypeFlags.ABSTRACT,
-    Properties: {
-        'gesture-modes': GObject.ParamSpec.flags(
-            'gesture-modes', null, null,
-            GObject.ParamFlags.READWRITE | GObject.ParamFlags.CONSTRUCT_ONLY,
-            Shell.ActionMode, Shell.ActionMode.OVERVIEW),
-    },
     Signals: {
         'view-loaded': {},
     },
@@ -607,7 +601,7 @@ var BaseAppView = GObject.registerClass({
         // Swipe
         this._swipeTracker = new SwipeTracker.SwipeTracker(this._scrollView,
             Clutter.Orientation.HORIZONTAL,
-            this.gestureModes,
+            Shell.ActionMode.ALL,
             {
                 name: 'AppDisplay swipe tracker',
             });
@@ -2119,7 +2113,6 @@ class FolderView extends BaseAppView {
             layout_manager: new Clutter.BinLayout(),
             x_expand: true,
             y_expand: true,
-            gesture_modes: Shell.ActionMode.POPUP,
         });
 
         // If it not expand, the parent doesn't take into account its preferred_width when allocating